package cn.rxls.community.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 资源使用(ResourceUsage)表实体类
 *
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("resource_usage")
public class ResourceUsage {
    @TableId(type = IdType.AUTO)
    //主键id    
    private Long resourceId;

    //用电量
    private Integer electricity;
    //天然气
    private Integer cng;
    //用水量
    private Integer water;
    //所属房屋id
    private Long houseId;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
}
